package com.webwork.lims.transport.dataobject;

import com.webwork.lims.common.dataobject.CtrlerAndTime;

public class TransOrder {
	
	/**
	 * 运输单号
	 */
	private String transId;
	
	/**
	 * 运输车号
	 */
	private String carNum;
	
	/**
	 * 运输路线
	 */
	private String wayLine;
	private String arrive;
	private int predict;
	
	/**
	 * 预计时长
	 */
	private int hours;
	
	/**
	 * 运输状态
	 */
	private TransStatus status;
	private Integer statusCode;
	
	/**
	 * 创建人和时间
	 */
	private CtrlerAndTime create;
	
	/**
	 * 发货人和时间
	 */
	private CtrlerAndTime delivery;
	
	/**
	 * 修改人和时间
	 */
	private CtrlerAndTime modify;
	
	/**
	 * 完成人和时间
	 */
	private CtrlerAndTime complete;
	

	public String getTransId() {
		return transId;
	}

	public void setTransId(String transId) {
		this.transId = transId;
	}

	public String getCarNum() {
		return carNum;
	}

	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}

	public String getWayLine() {
		return wayLine;
	}

	public void setWayLine(String wayLine) {
		this.wayLine = wayLine;
	}

	public String getArrive() {
		return arrive;
	}

	public void setArrive(String arrive) {
		this.arrive = arrive;
	}

	public int getPredict() {
		return predict;
	}

	public void setPredict(int predict) {
		this.predict = predict;
	}

	public int getHours() {
		return hours;
	}

	public void setHours(int hours) {
		this.hours = hours;
	}

	public TransStatus getStatus() {
		return status;
	}

	public void setStatus(TransStatus status) {
		this.status = status;
	}
	
	public void setStatus(Integer status) {
		this.status = TransStatus.fromCode(status);
	}

	public Integer getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(Integer statusCode) {
		this.statusCode = statusCode;
	}

	public CtrlerAndTime getCreate() {
		return create;
	}

	public void setCreate(CtrlerAndTime create) {
		this.create = create;
	}

	public CtrlerAndTime getDelivery() {
		return delivery;
	}

	public void setDelivery(CtrlerAndTime delivery) {
		this.delivery = delivery;
	}

	public CtrlerAndTime getModify() {
		return modify;
	}

	public void setModify(CtrlerAndTime modify) {
		this.modify = modify;
	}

	public CtrlerAndTime getComplete() {
		return complete;
	}

	public void setComplete(CtrlerAndTime complete) {
		this.complete = complete;
	}

}
